package com.xzit.rcpyxt.dto;

import io.swagger.annotations.ApiModelProperty;

public class PageBase {

    @ApiModelProperty(value = "当前页", required = false, example = "1")
    private int page = 1;
    @ApiModelProperty(value = "每页数量", required = false, example = "10")
    private int pageSize = 10;

    public int getPage() {
        return page >= 0 ? page : 0;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize > 0 ? pageSize : 10;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}